<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function Student(sname,sage) {
    this.sname=sname;
    this.sage = sage;
  }

  var father = {bal:1000000,car:'baoma'};

   Student.prototype = father;

   Student.prototype.intr = function () {
     console.log("I'm "+this.sname+", I'm "+this.sage);
   }

  var lilei = new Student('lilei',18);

  console.log(lilei.bal , lilei.car);

  lilei.intr();

</script>
</body>
</html>